<template>
  <div id="login">
    <h1>登录</h1>
    <div class="wx-login">
      <img src="~assets/img/profile/wx.png" alt="" />微信登陆
    </div>
    <div class="msg">其他方式登录</div>
    <div class="other-login">
      <div class="qq-login" @click="QQLogin">
        <img src="~assets/img/profile/qq.png" alt="" />
        <span>QQ登录</span>
      </div>
      <div class="account-login" @click="AccountLogin">
        <img src="~assets/img/profile/user.png" alt="" />
        <span>账号登录</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Login",
  methods: {
    QQLogin() {
      this.$router.push("/login/qq");
    },
    AccountLogin() {
      this.$router.push("/login/account");
    },
  },
};
</script>

<style scoped>
h1 {
  text-align: center;
  font-size: 30px;
  margin: 80px 0 60px;
}
.wx-login {
  width: 80%;
  height: 50px;
  font-size: 20px;
  text-align: center;
  background-color: #09bb07;
  color: #ffffff;
  line-height: 50px;
  margin: 0 auto 100px;
  border-radius: 25px;
}
.wx-login img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  padding-right: 10px;
}
.msg {
  margin: 40px 0;
  text-align: center;
  color: #666666;
  font-size: 14px;
}
.other-login {
  display: flex;
  align-items: center;
  position: relative;
}
.other-login::before {
  position: absolute;
  content: "";
}
.qq-login {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  padding: 0 20px;
}
.account-login {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  padding: 0 20px;
}
.qq-login img,
.account-login img {
  padding: 10px;
  border-radius: 50%;
  border: 1px solid #666666;
  margin-bottom: 10px;
}
</style>
